package com.example.anew.journey.mynewjourney.firstchangelogic.firstChangeAddDevices.model;

import android.content.Context;
import android.content.SharedPreferences;

import com.example.anew.journey.mynewjourney.bean.TakeDateBean;

import static android.content.Context.MODE_PRIVATE;

/**
 * 杭州惟君医疗科技有限公司18
 * Created by 20433 on 2018/3/26
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public class FirstChangeAddDevicesModel implements ISFirstChangeAddDevicesModel {
    @Override
    public TakeDateBean TakeDate(Context mContext) {
        SharedPreferences sharedPreferences = mContext.getSharedPreferences("My_App_Cardiac", MODE_PRIVATE);
        String my_use_id = sharedPreferences.getString("my_use_id", "");
        String my_use_token = sharedPreferences.getString("my_use_token", "");
        TakeDateBean takeDateBean =  new TakeDateBean();
        takeDateBean.setUser_id(my_use_id);
        takeDateBean.setToken(my_use_token);
        return takeDateBean;
    }
}
